import { createApp } from "vue";
import App from "./App.vue";
import router from "@/router";
// import testDemoStore from "./views/test-demo/store";
import { setupStore } from "@/store";
import { setupDirective } from "@/directive";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";

//skin皮肤 2025.02.14
import skinpage from './skinpage.vue'

import "@/permission"; 
// 本地SVG图标
import "virtual:svg-icons-register"; 
// 国际化
import i18n from "@/lang/index"; 
// 样式
import "element-plus/theme-chalk/dark/css-vars.css";
import "@/styles/index.scss";
import "uno.css"; 
const app = createApp(App);
// 全局注册 自定义指令(directive)
setupDirective(app);
// 全局注册 状态管理(store)
setupStore(app); 
// 注册 test-demo 模块的 store
// app.use(testDemoStore); // 注册 Vuex store
app.use(router).use(i18n).mount("#app");
app.use(ElementPlus); 
 
//skin皮肤 2025.02.14
app.component('skinpage', skinpage)
//默认开局样式
document.body.setAttribute("class", "custom-blue"); //初始化样式赋值
//默认开局样式END


// 如果您正在使用CDN引入，请删除下面一行。
//引用所有plusicon库
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}